<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<title>${metadata.alias!}</title>
		<@_includePlace path="/index.html/3f9a648b-7360-41b5-86e5-6b4b108268f1.html"/> <#-- 头部Header -->
	<script type="text/javascript">
	$(function(){$('.login-form input').eq(0).focus();});
	</script>
</head>
<body>
<@include path="ftl/dynamic-user.ftl"/> <#-- 动态站点用户状态 -->
<@_includePlace path="/index.html/2ecdebcc-c087-4ed3-aecd-80f85ce6a6c6.html"/> <#-- 导航 -->
<main>
    <div class="container">
		 <#if user??>
				<p class="message">${user.nickName},您已经登录了! 您可以选择<a href="${site.dynamicPath}logout.do?returnUrl=${site.dynamicPath?url}sso.html">退出登录</a></p>
		<#else>
			  <@import path="/ftl/tools.ftl" namespace="t"/>
			  <form action="doRegister.do" method="post" class="center login-form">
				<#if error??>
				<p class="message red"><@t.m error/></p>
				</#if>
				<#if message??>
				<p class="message"><@t.m "message."+message/></p>
				</#if>
				<p><input type="text" name="name" class="input-text" placeholder="用户名" title="用户名" value="${name!}"/></p>
				<p>4位以上数字、字母、下划线,不以数字开始</p>
				<p><input type="text" name="nickName" class="input-text" placeholder="昵称" title="昵称"  value="${nickName!}"/></p>
				<p>2位以上数字、字母、汉字、下划线</p>
				<p><input type="password" name="password" class="input-text" placeholder="密码" title="密码"/></p>
				<p><input type="password" name="repassword" class="input-text" placeholder="重复密码" title="重复密码"/></p>
				<p class="text-center">
				 <input type="hidden" name="returnUrl" value="login.html?returnUrl=${returnUrl!site.sitePath!}"/>
				  <input type="submit" class="button" value="注册"/>
				</p>
				  <p class="message">已有账号?请<a href="login.html?returnUrl=${(returnUrl!site.sitePath!)?url}">登录</a></p>
			  </form>
		</#if>
    </div>
</main>
<@_includePlace path="/index.html/6369e868-50b9-4245-9d39-fd440384a685.html"/> <#-- 尾部Footer -->
</body>
</html>